import {connection} from './conn_to_sqlite.js'

const getUserTable = () => connection.table('user') // using table user

export async function getUser(id) {
	return await getUserTable().first().where({ id })
}

export async function getUserByEmail(email) {
	return await getUserTable().first().where({ email })
}
